home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Toolbox / GetDragHiliteColor / Sample.r < prev   
Encoding:
Text File  |  1994-09-11  |  1.7 KB  |  119 lines  |  [TEXT/MPS ]

  1. #include "SysTypes.r"
  2. #include "Types.r"
  3.  
  4. #ifdef PowerPCBuild
  5. #include "CodeFragmentTypes.r"
  6. #endif
  7.  
  8. resource 'MENU' (128, preload) {
  9.     128,
  10.     textMenuProc,
  11.     0x7FFFFFFD,
  12.     enabled,
  13.     apple,
  14.     {    /* array: 2 elements */
  15.         /* [1] */
  16.         "About GetDragHiliteColor", noIcon, noKey, noMark, plain,
  17.         /* [2] */
  18.         "-", noIcon, noKey, noMark, plain
  19.     }
  20. };
  21.  
  22. resource 'MENU' (129, preload) {
  23.     129,
  24.     textMenuProc,
  25.     allEnabled,
  26.     enabled,
  27.     "File",
  28.     {    /* array: 1 elements */
  29.         /* [1] */
  30.         "Quit", noIcon, "Q", noMark, plain
  31.     }
  32. };
  33.  
  34. resource 'MBAR' (128, "App Menu") {
  35.     {    /* array MenuArray: 2 elements */
  36.         /* [1] */
  37.         128,
  38.         /* [2] */
  39.         129
  40.     }
  41. };
  42.  
  43. resource 'SIZE' (-1) {
  44.     reserved,
  45.     acceptSuspendResumeEvents,
  46.     reserved,
  47.     canBackground,
  48.     multiFinderAware,
  49.     backgroundAndForeground,
  50.     getFrontClicks,
  51.     ignoreChildDiedEvents,
  52.     is32BitCompatible,
  53.     isHighLevelEventAware,
  54.     onlyLocalHLEvents,
  55.     notStationeryAware,
  56.     dontUseTextEditServices,
  57.     reserved,
  58.     reserved,
  59.     reserved,
  60.     100000,
  61.     100000
  62. };
  63.  
  64. resource 'ALRT' (128) {
  65.     {68, 64, 238, 346},
  66.     128,
  67.     {    /* array: 4 elements */
  68.         /* [1] */
  69.         OK, visible, sound1,
  70.         /* [2] */
  71.         OK, visible, sound1,
  72.         /* [3] */
  73.         OK, visible, sound1,
  74.         /* [4] */
  75.         OK, visible, sound1
  76.     }
  77. };
  78.  
  79. resource 'DITL' (128) {
  80.     {    /* array DITLarray: 2 elements */
  81.         /* [1] */
  82.         {132, 180, 157, 262},
  83.         Button {
  84.             enabled,
  85.             "OK"
  86.         },
  87.         /* [2] */
  88.         {7, 14, 124, 260},
  89.         StaticText {
  90.             disabled,
  91.             "A bare bones application showing how to "
  92.             "obtain the color used by the Drag"
  93.             " Manager to hilite regions"
  94.             "\n"
  95.             "\n"
  96.             "By Nitin Ganatra, 9/94"
  97.         }
  98.     }
  99. };
  100.  
  101.  
  102. #ifdef PowerPCBuild
  103. resource 'cfrg' (0,sysheap,locked)
  104. {
  105.     {
  106.         kPowerPC,
  107.         kFullLib,
  108.         kNoVersionNum,
  109.         kNoVersionNum,
  110.         0,
  111.         0,
  112.         kIsApp,
  113.         kOnDiskFlat,
  114.         kZeroOffset,
  115.         kWholeFork,
  116.         "GetDragHiliteColor"
  117.     }
  118. };
  119. #endif